package com.anpy.bill.mapper;

import com.anpy.bill.entity.*;
import com.anpy.bill.model.param.BillListParams;
import com.anpy.bill.model.result.BillStatisticsResult;
import com.anpy.bill.model.result.MonthMoneyResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface BillMapper extends BaseMapper<BillEntity> {

    List<BillEntity> billList(BillListParams params);

    List<ClassifyResultEntity> queryClassifyList();

    void saveStatisticsBill(BillStatisticsEntity billStatisticsEntity);

    Integer queryStatisticsBill(BillStatisticsEntity billStatisticsEntity);

    void updateStatisticsBill(BillStatisticsEntity entity);

    List<BillReportResult> report(BillReportParam billReportParam);

    List<MonthMoneyResult> billMonthList(@Param("userId") Long userId, @Param("year") String year);

    MonthMoneyResult billYearMoney(Long userId, String year);

    BillStatisticsResult billStatistics(@Param("userId") Long userId);
}
